From ac3bb7e75413c1df60cf2de5c29e999df518a62d Mon Sep 17 00:00:00 2001 From: Augusto Stoffel Date: Wed, 23 Mar 2022 19:43:13 +0100 Subject: [PATCH] Fix regression in isearch-yank-char-in-minibuffer * lisp/isearch.el (isearch-yank-char-in-minibuffer): Select the original window in order to restore point. This is needed when minibuffer lazy highlight is in effect. --- lisp/isearch.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/isearch.el b/lisp/isearch.el index 1a83586ef8a..9b311cb49ea 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -2670,7 +2670,7 @@ or it might return the position of the end of the line." (interactive "p") (if (eobp) (insert - (with-current-buffer (cadr (buffer-list)) + (with-minibuffer-selected-window (buffer-substring-no-properties (point) (progn (forward-char arg) (point))))) (forward-char arg))) -- 2.30.2